package org.sean.contactdemo.domain;

import java.io.Serializable;
import java.util.Date;

import org.eclipse.core.runtime.IAdaptable;

public class Phone implements IAdaptable, Serializable {

	private int phoneId;
	private int contactId;
	private String countryCode;
	private String areacode;
	private String phoneNumber;
	private String phoneDesc;
	private Date createDate;

	public Phone() {
	}

	public Phone(int contactId, String phoneNumber) {
		this.contactId = contactId;
		this.phoneNumber = phoneNumber;
		this.createDate = new Date();
	}

	public Phone(int contactId, String phoneNumber, Date createDate) {
		this.contactId = contactId;
		this.phoneNumber = phoneNumber;
		this.createDate = createDate;
	}

	@Override
	public Object getAdapter(Class adapter) {
		// TODO Auto-generated method stub
		return null;
	}

	public int getPhoneId() {
		return phoneId;
	}

	public void setPhoneId(int phoneId) {
		this.phoneId = phoneId;
	}

	public int getContactId() {
		return contactId;
	}

	public void setContactId(int contactId) {
		this.contactId = contactId;
	}

	public String getCountryCode() {
		return countryCode;
	}

	public void setCountryCode(String countryCode) {
		this.countryCode = countryCode;
	}

	public String getAreacode() {
		return areacode;
	}

	public void setAreacode(String areacode) {
		this.areacode = areacode;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}

	public String getPhoneDesc() {
		return phoneDesc;
	}

	public void setPhoneDesc(String phoneDesc) {
		this.phoneDesc = phoneDesc;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}
